package com.hyt.it.ogt.ks.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hyt.it.ogt.ks.api.kw.model.CandidateLogDTO;
import com.hyt.it.ogt.ks.model.entity.CandidateLog;
import com.hyt.it.ogt.ks.model.vo.CandidateLogBeginTimeVO;

/**
 * <p>
 * 考生考试操作轨迹，包括作答日志、登录、提交答案、切换屏幕、复制粘贴等 服务类
 * </p>
 *
 * @author chengxh
 * @since 2020-06-17
 */
public interface ICandidateLogService extends IService<CandidateLog> {
    /**
     * 获取考生事件接口
     * @param candidateId
     * @return
     */
    List<CandidateLogDTO> getCandidateExamLogDetail(String candidateId);
    
    /**
     * 保存轨迹接口（操作日志）
     * @param candidateLog
     * @return
     */
    void saveCandidateLog(CandidateLog candidateLog);

    /**
     * 保存轨迹
     * @param examId
     * @param itemId
     * @param candidateId
     * @param type
     */
    void saveLog(String examId, String itemId, String candidateId, int type, HttpServletRequest request);

    void saveLog(String examId, String itemId, String candidateId, int type, String operateContent, HttpServletRequest request);

    void printlnLog(String title, String ...s);

    void saveLog(String examId, String candidateId, int type, String operateContent, HttpServletRequest request);

    /**
     * 查询操作时间
     * @param examId
     * @param operatorType
     * @return
     */
    List<CandidateLogBeginTimeVO> getCandidateLogBeginTime(String examId, String operatorType);

}
